package com.kpmg.datalake.common.model;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 项目报表sql
 * </p>
 *
 * @author eyu7
 * @since 2018-08-16
 */
@TableName("PRJ_SQL_CFG")
public class ProjectRptSql implements Serializable {

    private static final long serialVersionUID = -464336283426035452L;
    /**
     * 项目报表主键
     */
    @TableId(type = IdType.UUID)
    private String rptSqlId;
    /**
     * 项目主键ID
     */
    private String prjId;
    /**
     * 报表类型
     */
    private String rptType;
    /**
     * 文件导出类型
     */
    private String rptExpType;
    /**
     * 脚本内容
     */
    private String sqlTxt;
    /**
     * 是否有效
     */
    private Integer delInd;
    /**
     * 创建人
     */
    private String crtUsrId;
    /**
     * 创建时间
     */
    private Date crtDt;
    /**
     * 更新人
     */
    private String udtUsrId;
    /**
     * 更新时间
     */
    private Date udtDt;


    public String getRptSqlId() {
        return rptSqlId;
    }

    public void setRptSqlId(String rptSqlId) {
        this.rptSqlId = rptSqlId;
    }

    public String getPrjId() {
        return prjId;
    }

    public void setPrjId(String prjId) {
        this.prjId = prjId;
    }

    public String getRptType() {
        return rptType;
    }

    public void setRptType(String rptType) {
        this.rptType = rptType;
    }

    public String getRptExpType() {
        return rptExpType;
    }

    public void setRptExpType(String rptExpType) {
        this.rptExpType = rptExpType;
    }

    public String getSqlTxt() {
        return sqlTxt;
    }

    public void setSqlTxt(String sqlTxt) {
        this.sqlTxt = sqlTxt;
    }

    public Integer getDelInd() {
        return delInd;
    }

    public void setDelInd(Integer delInd) {
        this.delInd = delInd;
    }

    public String getCrtUsrId() {
        return crtUsrId;
    }

    public void setCrtUsrId(String crtUsrId) {
        this.crtUsrId = crtUsrId;
    }

    public Date getCrtDt() {
        return crtDt;
    }

    public void setCrtDt(Date crtDt) {
        this.crtDt = crtDt;
    }

    public String getUdtUsrId() {
        return udtUsrId;
    }

    public void setUdtUsrId(String udtUsrId) {
        this.udtUsrId = udtUsrId;
    }

    public Date getUdtDt() {
        return udtDt;
    }

    public void setUdtDt(Date udtDt) {
        this.udtDt = udtDt;
    }

    @Override
    public String toString() {
        return getClass().getName() + JSONObject.toJSONString(this);
    }
}
